{"ast":null,"code":"import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nfunction transform(value) {\n  return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n  prop: 'width',\n  transform\n});\nexport const maxWidth = props => {\n  if (props.maxWidth !== undefined && props.maxWidth !== null) {\n    const styleFromPropValue = propValue => {\n      var _props$theme, _props$theme$breakpoi, _props$theme$breakpoi2;\n      const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || breakpointsValues[propValue];\n      return {\n        maxWidth: breakpoint || transform(propValue)\n      };\n    };\n    return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n  }\n  return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n  prop: 'minWidth',\n  transform\n});\nexport const height = style({\n  prop: 'height',\n  transform\n});\nexport const maxHeight = style({\n  prop: 'maxHeight',\n  transform\n});\nexport const minHeight = style({\n  prop: 'minHeight',\n  transform\n});\nexport const sizeWidth = style({\n  prop: 'size',\n  cssProperty: 'width',\n  transform\n});\nexport const sizeHeight = style({\n  prop: 'size',\n  cssProperty: 'height',\n  transform\n});\nexport const boxSizing = style({\n  prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","map":{"version":3,"names":["style","compose","handleBreakpoints","values","breakpointsValues","transform","value","width","prop","maxWidth","props","undefined","styleFromPropValue","propValue","_props$theme","_props$theme$breakpoi","_props$theme$breakpoi2","breakpoint","theme","breakpoints","filterProps","minWidth","height","maxHeight","minHeight","sizeWidth","cssProperty","sizeHeight","boxSizing","sizing"],"sources":["/data/messenger.client/node_modules/@mui/system/esm/sizing.js"],"sourcesContent":["import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nfunction transform(value) {\n  return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n  prop: 'width',\n  transform\n});\nexport const maxWidth = props => {\n  if (props.maxWidth !== undefined && props.maxWidth !== null) {\n    const styleFromPropValue = propValue => {\n      var _props$theme, _props$theme$breakpoi, _props$theme$breakpoi2;\n      const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || breakpointsValues[propValue];\n      return {\n        maxWidth: breakpoint || transform(propValue)\n      };\n    };\n    return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n  }\n  return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n  prop: 'minWidth',\n  transform\n});\nexport const height = style({\n  prop: 'height',\n  transform\n});\nexport const maxHeight = style({\n  prop: 'maxHeight',\n  transform\n});\nexport const minHeight = style({\n  prop: 'minHeight',\n  transform\n});\nexport const sizeWidth = style({\n  prop: 'size',\n  cssProperty: 'width',\n  transform\n});\nexport const sizeHeight = style({\n  prop: 'size',\n  cssProperty: 'height',\n  transform\n});\nexport const boxSizing = style({\n  prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;"],"mappings":"AAAA,OAAOA,KAAK,MAAM,SAAS;AAC3B,OAAOC,OAAO,MAAM,WAAW;AAC/B,SAASC,iBAAiB,EAAEC,MAAM,IAAIC,iBAAiB,QAAQ,eAAe;AAC9E,SAASC,SAAS,CAACC,KAAK,EAAE;EACxB,OAAOA,KAAK,IAAI,CAAC,IAAIA,KAAK,KAAK,CAAC,GAAI,GAAEA,KAAK,GAAG,GAAI,GAAE,GAAGA,KAAK;AAC9D;AACA,OAAO,MAAMC,KAAK,GAAGP,KAAK,CAAC;EACzBQ,IAAI,EAAE,OAAO;EACbH;AACF,CA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